import Home from "../pages/Home/Home";
import Second from "../pages/Second/Second";
import Third from "../pages/Third/Third";
// 导入模块1， 模块2和模块3
import Model1 from "../components/Model1/Model1";
import Model2 from "../components/Model2/Model2";
import Model3 from "../components/Model3/Model3";

const Routes = [
    {
        path:"/",
        component:Home
    },
    {
      path:"/second",
      component:Second,
      children:[
         {
           path:"model1",
           component:Model1,
           children:[
             {
               path:"model11",
               component:Model2
             },
             {
              path:"model12",
              component:Model3
            }
           ]
         },
         {
           path:"model2",
           component:Model2
         },
         {
           path:"model3",
           component:Model3
         } 
      ]
    },
    {
      path:"/third/:id",
      component:Third
    }
];

export default Routes;